<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div style="float: right">
    <c:if test="${sessionScope.userInfo==null}">
        <a href="${appHost}/user-login.jsp">登陆</a>&nbsp;|&nbsp;<a href="${appHost}/user-register.jsp">注册</a>
    </c:if>
    <c:if test="${sessionScope.userInfo!=null}">
        ${sessionScope.userInfo.userName}&nbsp;| &nbsp;发布内容&nbsp;|&nbsp;<a href="${appHost}/UserExitServlet">退出</a>&nbsp;|
    </c:if>
</div>